package com.tilaiedu.mvc.mapper;

import com.tilaiedu.mvc.entity.Goods;
import com.tilaiedu.mvc.vo.SearchVO;

import java.util.List;
import java.util.Map;

public interface GoodsMapper {
    int deleteByPrimaryKey(Integer gid);

    int insert(Goods record);

    Goods selectByPrimaryKey(Integer gid);

    List<Goods> selectAll();

    int updateByParam(Map<String,Object> record);

    /**
     * 分页查询
     * @param searchVO
     * @return
     */
    List<Goods> selectPageByParam(SearchVO searchVO);

    /**
     * 添加商品信息
     * @param goods
     * @return
     */
    int insertWithMap(Map<String, Object> goods);
}